<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.hengpeng.itfints.tools.PageUtil" %>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="${path }/favicon.ico" />
<link href="${skin }/theme.css" rel="stylesheet" type="text/css" />
<link href="${skin }/member.css" rel="stylesheet" type="text/css" />
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<title>会员中心-债权转让</title>
<style type="text/css">
body{background:#F5F5F5;}
.logo_main_bor{box-shadow: 0px 2px 6px rgba(2, 0, 0, 0.1);}
</style>
</head>
<body>
<c:import url="../../include/head.jsp"></c:import>
<c:import url="../../include/logo_menu.jsp">
	<c:param name="type" value="index"></c:param>
</c:import>

<div class="youarehere">
	<div class="localtion"><a href="${path }/">首页</a> » 债权转让</div>
</div>
<script type="text/javascript">
	function selectType (type) {
		if (type == 'CAN') {
			window.location.href = "<%=request.getContextPath()%>/assign/canAssignList.htm";
		} else if (type == 'ASSIGNING') {
			window.location.href = "<%=request.getContextPath()%>/assign/assigningList.htm";
		} else if (type == 'ASSIGNED') {
			window.location.href = "<%=request.getContextPath()%>/assign/assignedList.htm";
		} else if (type == 'BUYED') {
			window.location.href = "<%=request.getContextPath()%>/assign/buyedList.htm";
		}
	}
</script>
<div class="wrapper auto_height">
<c:import url="../left.jsp"></c:import>
<div class="bodyright l" style="width:778px;">
<div class="line_EAEAEA auto_height" style="background: #fff;margin-bottom: 20px;">
	<div style="padding: 12px">
		<div class="hkjh_top_ul1_li1div1">债权转让</div>
	</div>
	<div class="dh_pub_list2 clearfix" id="tags">
       <ul>
       	  <li style="width: 20px;"><a></a></li>
      	  <li><a  href="javascript:void(0);" onclick="javascript:selectType('CAN');">可转让的债权</a></li>
    	  <li><a  href="javascript:void(0);" onclick="javascript:selectType('ASSIGNING');">转让中的债权</a></li>
    	  <li><a class="overbg"  href="javascript:void(0);" onclick="javascript:selectType('ASSIGNED');">已转出的债权</a></li>
    	  <li><a href="javascript:void(0);" onclick="javascript:selectType('BUYED');">已购买的债权</a></li>
       </ul>
	</div>
</div>
<div class="line_EAEAEA auto_height" style="background: #fff;margin-bottom: 20px;">
<div style="padding: 12px">
</div>
	<ul class="account_item_title" style="clear: both;">
		<li style="text-align:center;width:82px;">标的名称</li>
		<li>年化率</li>
		<li>剩余期数</li>
		<li>转让金额</li>
		<li>折价率(%)</li>
		<li>手续费</li>
		<li>收入金额</li>
		<li>转让日期</li>
	</ul>
	<c:choose> 
	     <c:when test="${fn:length(assignedList) > 0}"> 
	      		<c:forEach items="${assignedList}" var="assign" varStatus="vstatus">
					<c:choose>
			            <c:when test="${vstatus.index%2 == 0}">
			  				<ul class="account_item_title2"  style="clear: both;">
								<li style="text-align:center;width:82px;">
									<a href="javascript:void(0);" title="${assign.borrowName }" onclick="myreceiveplan()" class="d_blue">
										<c:choose> 
										     <c:when test="${fn:length(assign.borrowName) > 6}"> 
										      	<c:out value="${fn:substring(assign.borrowName, 0, 6)}..." /> 
										     </c:when>
										     <c:otherwise> 
										      	<c:out value="${assign.borrowName}" /> 
										     </c:otherwise>
									    </c:choose>
									</a>
								</li>
								<li>${assign.borrowRate}% </li>
								<li>${assign.leftPlanNum}</li>
								<li><fmt:formatNumber value="${assign.sellMoney/100}" type="currency" pattern="￥.00"/></li>
								<li>${assign_rate*100}%</li>
								<li>${assign_fee*100}%</li>
								<li><fmt:formatNumber value="${assign.buyMoney/100}" type="currency" pattern="￥.00"/></li>
								<li>
									<fmt:formatDate value="${assign.assignSuccessTime }" pattern="yyyy/MM/dd"/>
								</li>
							</ul>
			            </c:when>
			            <c:otherwise>
			    			<ul class="account_item_title3"  style="clear: both;">
								<li style="text-align:center;width:82px;">
									<a href="javascript:void(0);" title="${assign.borrowName }" onclick="myreceiveplan()" class="d_blue">
										<c:choose> 
										     <c:when test="${fn:length(assign.borrowName) > 6}"> 
										      	<c:out value="${fn:substring(assign.borrowName, 0, 6)}..." /> 
										     </c:when>
										     <c:otherwise> 
										      	<c:out value="${assign.borrowName}" /> 
										     </c:otherwise>
									    </c:choose>
									</a>
								</li>
								<li>${assign.borrowRate}% </li>
								<li>${assign.leftPlanNum}</li>
								<li><fmt:formatNumber value="${assign.sellMoney/100}" type="currency" pattern="￥.00"/></li>
								<li>${assign_rate*100}%</li>
								<li>${assign_fee*100}%</li>
								<li><fmt:formatNumber value="${assign.buyMoney/100}" type="currency" pattern="￥.00"/></li>
								<li>
									<fmt:formatDate value="${assign.assignSuccessTime }" pattern="yyyy/MM/dd"/>
								</li>
							</ul>
			            </c:otherwise>
			        </c:choose>
				</c:forEach>  
	     </c:when> 
	     <c:otherwise> 
	      		<div class="s_13">
					<div style="line-height: 60px; font-size: 16px; text-align: center;">暂无记录</div>
				</div>
	     </c:otherwise>
    </c:choose>
	<div class="clearfix section"></div>
	
<div class="paginations">
	<div class="page-bottom">
	</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
	//查看收款计划
	function myreceiveplan (borrowInfoId, userId) {
		window.location.href = "<%=request.getContextPath()%>/repayment/myReceivePlanList.htm?borrowInfoId="+borrowInfoId+"&investUserId="+userId;
	}
</script>
<!-- 友情链接 -->
<c:import url="../../include/links.jsp"></c:import>

<!-- 版权所有 -->
<c:import url="../../include/copyright.jsp"></c:import>
</body>
</html>